<?php

function user_info($user_id)
{
	$sql = "SELECT * FROM " . $GLOBALS['ecs']->table('users') .
			" WHERE user_id = '$user_id'";
	$user = $GLOBALS['db']->getRow($sql);
	
	unset($user['question']);
	unset($user['answer']);
	
	if($user)
	{
		$user['formated_user_money'] = price_format($user['user_money'],false);
		$user['formated_frozen_money'] = price_format($user['frozen_money'],false);
	}
	
	return $user;
}